diff options
| author | Adam Soltys <[email protected]> | 2023-01-31 19:56:31 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2023-01-31 19:56:31 -0800 |
| commit | cf29dcc02e2c9ac593d6e8f0aff2589b80ffa994 (patch) | |
| tree | 447e4a87e739ba4e53e8f31f6e1883cd54896dde /src/routes/(app)/[username]/payments | |
| parent | eff1fd2b4747d07a6b342d2561785c18ea500bcb (diff) | |
| download | coinos-ui-cf29dcc02e2c9ac593d6e8f0aff2589b80ffa994.tar.gz coinos-ui-cf29dcc02e2c9ac593d6e8f0aff2589b80ffa994.zip | |
prettier
Diffstat (limited to 'src/routes/(app)/[username]/payments')
| -rw-r--r-- | src/routes/(app)/[username]/payments/[...page]/+page.svelte | 6 | ||||
| -rw-r--r-- | src/routes/(app)/[username]/payments/[...page]/+server.js | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/routes/(app)/[username]/payments/[...page]/+page.svelte b/src/routes/(app)/[username]/payments/[...page]/+page.svelte index 4a3f58f5..b46e31d6 100644 --- a/src/routes/(app)/[username]/payments/[...page]/+page.svelte +++ b/src/routes/(app)/[username]/payments/[...page]/+page.svelte @@ -59,9 +59,9 @@ payments = payments.map((p) => ({ ...p, created: new Date(p.created), - fiat: f((p.amount || 0) * p.rate / sats, p.currency), - fiatfee: f((p.fee || 0) * p.rate / sats, p.currency), - fiattip: f((p.tip || 0) * p.rate / sats, p.currency) + fiat: f(((p.amount || 0) * p.rate) / sats, p.currency), + fiatfee: f(((p.fee || 0) * p.rate) / sats, p.currency), + fiattip: f(((p.tip || 0) * p.rate) / sats, p.currency) })); let keys = [ diff --git a/src/routes/(app)/[username]/payments/[...page]/+server.js b/src/routes/(app)/[username]/payments/[...page]/+server.js index c33bd864..c7c5222d 100644 --- a/src/routes/(app)/[username]/payments/[...page]/+server.js +++ b/src/routes/(app)/[username]/payments/[...page]/+server.js @@ -12,7 +12,7 @@ export async function GET({ cookies, params }) { let url = `/payments?start=${start * 1000}`; if (end) url += `&end=${end * 1000}`; - + let { payments } = await get(url, auth(cookies)); return json({ payments }); } |
